<div class="block-main-head"><a href="<?php echo site_url(); ?>/consulting">TƯ VẤN</a></div>
<div class="block-main-sub" style="height: 10px;">&nbsp;</div>
<div class="span-16 last">
    <div class="span-16" style="margin: 10px 0;">
        <div class="tuvan-box-top">
            <span class="title">
                <a name="goctamtinh"></a>
                <a href="<?php echo site_url() . '/consulting#goctamtinh'; ?>">
                    Góc tâm tình
                </a>
            </span>
        </div>
        <div class="tuvan-box-mid">
            <?php if($goctamtinh['total'] > 0) { ?>
            <div class="box4">
                <img class="thumb" src="<?php echo base_url() . $goctamtinh['data'][0]['thumb']; ?>" />
                <h3>
                    <a href="<?php echo site_url(); ?>/consulting/view/id/<?php echo $goctamtinh['data'][0]['node_id']; ?>">
                    <?php echo $goctamtinh['data'][0]['title']; ?>
                    </a>
                </h3>
                <p>
                    <?php echo $this->utf8_substr($goctamtinh['data'][0]['description'], 0, 400); ?>
                    <a href="<?php echo site_url() . '/consulting/view/id/' . $goctamtinh['data'][0]['node_id']; ?>">xem tiếp</a>
                </p>
            </div>
            <p class="clear"></p>
            <ul class="photo-list">
                <?php
                if(sizeof($goctamtinh['data']) > 1)
                {
                    for($i = 1; $i < sizeof($goctamtinh['data']); $i++)
                    {
                ?>
                <li>
                    <a href="<?php echo site_url().'/consulting/view/id/'.$goctamtinh['data'][$i]['node_id']; ?>"><?php echo $goctamtinh['data'][$i]['title']; ?></a>
                </li>
                <?php
                    }
                }    
                ?>
            </ul>
            <?php }else{ echo 'Chưa có bài viết nào.'; } ?>
        </div>
        <div class="tuvan-box-bot"></div>
    </div>
    
    <div class="span-16" style="margin: 10px 0;">
        <div class="tuvan-box-top">
            <span class="title">
                <a name="cauhoicuaban"></a>
                <a href="<?php echo site_url() . '/consulting#cauhoicuaban'; ?>">
                    Câu hỏi của bạn
                </a>
            </span>
        </div>
        <div class="tuvan-box-mid">
            <?php if($cauhoicuaban['total'] > 0) { ?>
            <div class="box4">
                <img class="thumb" src="<?php echo base_url() . $cauhoicuaban['data'][0]['thumb']; ?>" />
                <h3>
                    <a href="<?php echo site_url(); ?>/consulting/view/id/<?php echo $cauhoicuaban['data'][0]['node_id']; ?>">
                    <?php echo $cauhoicuaban['data'][0]['title']; ?>
                    </a>
                </h3>
                <p>
                    <?php echo $this->utf8_substr($cauhoicuaban['data'][0]['description'], 0, 400); ?>
                    <a href="<?php echo site_url() . '/consulting/view/id/' . $cauhoicuaban['data'][0]['node_id']; ?>">xem tiếp</a>
                </p>
            </div>
            <p class="clear"></p>
            <ul class="photo-list">
                <?php
                if(sizeof($cauhoicuaban['data']) > 1)
                {
                    for($i = 1; $i < sizeof($cauhoicuaban['data']); $i++)
                    {
                ?>
                <li>
                    <a href="<?php echo site_url().'/consulting/view/id/'.$cauhoicuaban['data'][$i]['node_id']; ?>"><?php echo $cauhoicuaban['data'][$i]['title']; ?></a>
                </li>
                <?php
                    }
                }
                ?>
            </ul>
            <?php }else{ echo 'Chưa có bài viết nào.'; } ?>
        </div>
        <div class="tuvan-box-bot"></div>
    </div>

    <div class="span-16" style="margin: 10px 0;">
        <div class="tuvan-box-top">
            <span class="title">
                <a name="vanpham"></a>
                <a href="<?php echo site_url() . '/consulting#vanpham'; ?>">
                    Văn phẩm
                </a>
            </span>
        </div>
        <div class="tuvan-box-mid">
            <?php if($vanpham['total'] > 0) { ?>
            <div class="box4">
                <img class="thumb" src="<?php echo base_url() . $vanpham['data'][0]['thumb']; ?>" />
                <h3>
                    <a href="<?php echo site_url(); ?>/consulting/view/id/<?php echo $vanpham['data'][0]['node_id']; ?>">
                    <?php echo $vanpham['data'][0]['title']; ?>
                    </a>
                </h3>
                <p>
                    <?php echo $this->utf8_substr($vanpham['data'][0]['description'], 0, 400); ?>
                    <a href="<?php echo site_url() . '/consulting/view/id/' . $vanpham['data'][0]['node_id']; ?>">xem tiếp</a>
                </p>
            </div>
            <p class="clear"/>
            <ul class="photo-list">
                <?php
                if(sizeof($vanpham['data']) > 1)
                {
                    for($i = 1; $i < sizeof($vanpham['data']); $i++)
                    {
                ?>
                <li>
                    <a href="<?php echo site_url().'/consulting/view/id/'.$vanpham['data'][$i]['node_id']; ?>"><?php echo $vanpham['data'][$i]['title']; ?></a>
                </li>
                <?php
                    }
                }
                ?>
            </ul>
            <?php }else{ echo 'Chưa có bài viết nào.'; } ?>
        </div>
        <div class="tuvan-box-bot"></div>
    </div>
    
    <div class="span-16" style="margin: 10px 0;">
        <div class="tuvan-box-top">
            <span class="title">
                <a name="tulieu"></a>
                <a href="<?php echo site_url() . '/consulting#tulieu'; ?>">
                    Tư liệu
                </a>
            </span>
        </div>
        <div class="tuvan-box-mid">
            <?php if($tulieu['total'] > 0) { ?>
            <div class="box4">
                <img class="thumb" src="<?php echo base_url() . $tulieu['data'][0]['thumb']; ?>" />
                <h3>
                    <a href="<?php echo site_url(); ?>/consulting/view/id/<?php echo $tulieu['data'][0]['node_id']; ?>">
                    <?php echo $tulieu['data'][0]['title']; ?>
                    </a>
                </h3>
                <p>
                    <?php echo $this->utf8_substr($tulieu['data'][0]['description'], 0, 400); ?>
                    <a href="<?php echo site_url() . '/consulting/view/id/' . $tulieu['data'][0]['node_id']; ?>">xem tiếp</a>
                </p>
            </div>
            <p class="clear"/>
            <ul class="photo-list">
                <?php
                if(sizeof($tulieu['data']) > 1)
                {
                    for($i = 1; $i < sizeof($tulieu['data']); $i++)
                    {
                ?>
                <li>
                    <a href="<?php echo site_url().'/consulting/view/id/'.$tulieu['data'][$i]['node_id']; ?>"><?php echo $tulieu['data'][$i]['title']; ?></a>
                </li>
                <?php
                    }
                }
                ?>
            </ul>
            <?php }else{ echo 'Chưa có bài viết nào.'; } ?>
        </div>
        <div class="tuvan-box-bot"></div>
    </div>
</div>

<div class="span-8 last" id="content-right">
    <?php $this->load->view('layouts/right'); ?>
</div><br class="clear" />

<div style="border-top: 1px solid #CCC; width: 700px; margin: 20px auto; text-align: center; font-weight: bold; padding: 5px;">
    <img src="<?php echo base_url(); ?>static/images/icon/li.png" /><img src="<?php echo base_url(); ?>static/images/icon/li.png" />
    Bạn muốn tìm hiểu thêm về Tin Lành hoặc muốn tiếp nhận Chúa vào đời sống mình nhưng không biết phải bắt đầu từ đâu? Hãy liên hệ ngay với oneway.vn bằng cách <a href="<?php echo site_url(); ?>/contact/tiepnhan">click vào đây</a>, chúng tôi sẽ hỗ trợ bạn!
</div>



